<template>
  <basic-container>
    <avue-crud
      v-model="form"
      v-bind="bindVal"
      :page.sync="page"
      v-on="onEvent">

      <template slot="appUrl" slot-scope="{row}">
        <el-link type="primary">{{ handleUrl(row.appUrl) }}</el-link>
      </template>

    </avue-crud>
  </basic-container>
</template>

<script>
export default window.$crudCommon({
  name: 'Verison',
  methods: {
    handleUrl(url) {
      if (!url.includes(':8065')) {
        return url.replace('/profile', ':8065/profile')
      } else {
        return url
      }
    }
  }
}, {
  name: 'archives/verison',
  rowKey: 'versionId',
  data: 'rows'
})
</script>
